import * as actionTypes from './actionTypes';

var id = 1
export function addTodo(content) {
    return {
        type: actionTypes.ADD_TODO,
        payload: {
            id: id++,
            content: content, // 待办事项内容
            completed: false  // 是否完成的标识
        }
    }
}

export function addOptTime() {
    return {
        type: actionTypes.TODO2
    }
}